﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using UnityEditor;
using UnityEngine;

namespace ProjScan.Tools
{
	// Token: 0x02000172 RID: 370
	internal class SettingsHelper : Singleton<SettingsHelper>
	{
        // Token: 0x06000D04 RID: 3332 RVA: 0x00039EB4 File Offset: 0x000380B4
        public void ModifyProjectSettings()
        {
            PlayerSettings.Android.useCustomKeystore = false;
            BuildTargetGroup[] array = new BuildTargetGroup[4]
            {
                BuildTargetGroup.Standalone,
                BuildTargetGroup.iOS,
                BuildTargetGroup.Android,
                BuildTargetGroup.WebGL
            };
            BuildTargetGroup[] array2 = array;
            foreach (BuildTargetGroup targetGroup in array2)
            {
                string scriptingDefineSymbolsForGroup = PlayerSettings.GetScriptingDefineSymbolsForGroup(targetGroup);
                List<string> list = scriptingDefineSymbolsForGroup.Split(new char[1]
                {
                    ';'
                }).ToList();
                list.Remove("ReleaseAB");
                if (!list.Contains("JumpSDK"))
                {
                    list.Add("JumpSDK");
                }

                PlayerSettings.SetScriptingDefineSymbolsForGroup(targetGroup, string.Join(";", list));
            }
            AssetDatabase.SaveAssets();
			Debug.Log("项目设置修改成功。");
		}
	}
}
